﻿using System;
using System.Collections.Generic;
using System.Data;
using nkstdgia.common.ThamDinhGia.BusinessObjects;
using nkstdgia.common.ThamDinhGia.DataAccess;

namespace nkstdgia.common.ThamDinhGia.BusinessLogic
{
    public class VAT_LIEU_XAY_DUNGBL
    {
        #region ***** Init Methods *****

        VAT_LIEU_XAY_DUNGDA objVAT_LIEU_XAY_DUNGDA;

        public VAT_LIEU_XAY_DUNGBL()
        {
            objVAT_LIEU_XAY_DUNGDA = new VAT_LIEU_XAY_DUNGDA();
        }

        #endregion ***** Init Methods *****

        #region ***** Get Methods *****

        /// <summary>
        /// Get VAT_LIEU_XAY_DUNG by ma_ho_so
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns>VAT_LIEU_XAY_DUNG</returns>
        public VAT_LIEU_XAY_DUNG GetByMA_HO_SO(Int64 ma_ho_so)
        {
            return objVAT_LIEU_XAY_DUNGDA.GetByMA_HO_SO(ma_ho_so);
        }

        /// <summary>
        /// Get all of VAT_LIEU_XAY_DUNG
        /// </summary>
        /// <returns>List<<VAT_LIEU_XAY_DUNG>></returns>
        public List<VAT_LIEU_XAY_DUNG> GetList()
        {
            return objVAT_LIEU_XAY_DUNGDA.GetList();
        }

        /// <summary>
        /// Get DataSet of VAT_LIEU_XAY_DUNG
        /// </summary>
        /// <returns>DataSet</returns>
        public DataSet GetDataSet()
        {
            return objVAT_LIEU_XAY_DUNGDA.GetDataSet();
        }

        /// <summary>
        /// Get all of VAT_LIEU_XAY_DUNG paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>List<<VAT_LIEU_XAY_DUNG>></returns>
        public List<VAT_LIEU_XAY_DUNG> GetListPaged(int recperpage, int pageindex)
        {
            return objVAT_LIEU_XAY_DUNGDA.GetListPaged(recperpage, pageindex);
        }

        /// <summary>
        /// Get DataSet of VAT_LIEU_XAY_DUNG paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>DataSet</returns>
        public DataSet GetDataSetPaged(int recperpage, int pageindex)
        {
            return objVAT_LIEU_XAY_DUNGDA.GetDataSetPaged(recperpage, pageindex);
        }

        #endregion ***** Get Methods *****

        #region ***** Add Update Delete Methods *****

        /// <summary>
        /// Add a new VAT_LIEU_XAY_DUNG within VAT_LIEU_XAY_DUNG database table
        /// </summary>
        /// <param name="obj_vat_lieu_xay_dung">VAT_LIEU_XAY_DUNG</param>
        /// <returns>key of table</returns>
        public long Add(VAT_LIEU_XAY_DUNG obj_vat_lieu_xay_dung)
        {
            return objVAT_LIEU_XAY_DUNGDA.Add(obj_vat_lieu_xay_dung);
        }

        /// <summary>
        /// updates the specified VAT_LIEU_XAY_DUNG
        /// </summary>
        /// <param name="obj_vat_lieu_xay_dung">VAT_LIEU_XAY_DUNG</param>
        /// <returns></returns>
        public void Update(VAT_LIEU_XAY_DUNG obj_vat_lieu_xay_dung)
        {
            objVAT_LIEU_XAY_DUNGDA.Update(obj_vat_lieu_xay_dung);
        }

        /// <summary>
        /// Delete the specified VAT_LIEU_XAY_DUNG
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns></returns>
        public void Delete(Int64 ma_ho_so)
        {
            objVAT_LIEU_XAY_DUNGDA.Delete(ma_ho_so);
        }

        #endregion ***** Add Update Delete Methods *****
    }
}